/**
 * MoteAppTouchpadActivity.java
 *
 * Created by Andrew Moss on 11 Oct 2010
 *
 * Description
 */
package com.mossdev.android.moteapp;

import com.mossdev.android.moteapp.comms.Commands;
import com.mossdev.android.moteapp.comms.ServerConnectionException;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

/**
 * @author Andrew Moss
 *
 */
public class MoteAppTouchpadActivity extends Activity {
	
	//Constructor
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.touchpad);
        
        //Setup back button
        ImageButton back_button = (ImageButton)findViewById(R.id.TouchBack);
        back_button.setOnClickListener(new ButtonOnClickListener(Commands.BACK));
        
        //Setup the touchpad
        View touchview = findViewById(R.id.TouchView);
        touchview.setOnTouchListener(new TouchpadTouchListener());
    }

}
